const routeName = 'bannerMange';
export default {
	path: '/bannerMange',
	name: routeName,
	meta: {
		title: 'banner管理'
	},
	redirect: '/bannerMange/bannerList',
	component: () => import('@/components/EmptyRouterView'),
	children: [
		{
			path: 'bannerListAdmin',
			name: `${routeName}_bannerListAdmin`,
			meta: {
				title: 'banner管理-banner列表(管理员)',
				roles: ['Admin']
			},
			component: () => import('@/pages/bannerMange/list')
		},
		{
			path: 'historyBannerAdmin',
			name: `${routeName}_historyBannerAdmin`,
			meta: {
				title: 'banner管理-历史banner(管理员)',
				roles: ['Admin']
			},
			component: () => import('@/pages/bannerMange/historyBanner')
		},
		{
			path: 'bannerList',
			name: `${routeName}_bannerList`,
			meta: {
				title: 'banner管理-banner列表',
				roles: []
			},
			component: () => import('@/pages/bannerMange/list')
		},
		{
			path: 'historyBanner',
			name: `${routeName}_historyBanner`,
			meta: {
				title: 'banner管理-历史banner',
				roles: []
			},
			component: () => import('@/pages/bannerMange/historyBanner')
		},
		{
			path: 'addBanner',
			name: `${routeName}_addBanner`,
			meta: {
				title: 'banner管理-添加列表'
			},
			component: () => import('@/pages/bannerMange/addBanner')
		}
	]
};
